﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace BlobTowerDefense.Tools
{
    public static class StringFormatting
    {
        public static string FormatTowerStatus(string stringToFormat, params object[] variablesToInsert)
        {
            string []textSplit;
            textSplit = stringToFormat.Split(':');
            string textToReturn = textSplit[0] + ": ";
            foreach (object objectValue in variablesToInsert)
            {
                textToReturn += objectValue.ToString() + "/";
            }
            textToReturn = textToReturn.Remove(textToReturn.Length - 1, 1);
            return textToReturn;
        }
    }
}
